package com.supermap.application.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * @ClassName TIndexSysTypeCol
 * @Description 目标体系下对应详细指标
 * @Author HEKE
 * @Date 2019/2/21 18:05
 */

@Entity
@Table(name = "T_ECO_INDEX_SYS_COL1")
public class TIndexSysTypeCol {
    //主键
    private String id;
    //编码
    private String code;
    //名称
    private String name;
    //上级指标
    private String pid;
    //部门id
    private String dep;
    //报告期类型
    private String type;
    //对应指标编码
    private String zb_code;
    //功能键
    private String fun;
    //自定义url
    private String url;
    //指标体系id
    private String index_sys_id;
    //是否隐藏
    private String is_hidden;
    //是否为关键指标
    private String is_key_index;
    //排序
    private Integer sort;
    //指标所属类型id
    private String type_id;
    //数据提供部门id
    private String data_provider_id;
    //指标前端展示排序
    private Integer show_sort;
    //指标权重
    private Integer index_weight;
    //指标展示模板类型
    private Integer show_type;

    private String zrld;

    private String zrr;
    //单位
    private String unit;

    public TIndexSysTypeCol() {
    }

    public TIndexSysTypeCol(String id, String code, String name, String pid, String dep, String type, String zb_code, String fun, String url, String index_sys_id, String is_hidden, String is_key_index, Integer sort, String type_id, String data_provider_id, Integer show_sort, Integer index_weight, Integer show_type, String zrld, String zrr, String unit) {
        this.id = id;
        this.code = code;
        this.name = name;
        this.pid = pid;
        this.dep = dep;
        this.type = type;
        this.zb_code = zb_code;
        this.fun = fun;
        this.url = url;
        this.index_sys_id = index_sys_id;
        this.is_hidden = is_hidden;
        this.is_key_index = is_key_index;
        this.sort = sort;
        this.type_id = type_id;
        this.data_provider_id = data_provider_id;
        this.show_sort = show_sort;
        this.index_weight = index_weight;
        this.show_type = show_type;
        this.zrld = zrld;
        this.zrr = zrr;
        this.unit = unit;
    }

    @Override
    public String toString() {
        return "TIndexSysTypeCol{" +
                "id='" + id + '\'' +
                ", code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", pid='" + pid + '\'' +
                ", dep='" + dep + '\'' +
                ", type='" + type + '\'' +
                ", zb_code='" + zb_code + '\'' +
                ", fun='" + fun + '\'' +
                ", url='" + url + '\'' +
                ", index_sys_id='" + index_sys_id + '\'' +
                ", is_hidden='" + is_hidden + '\'' +
                ", is_key_index='" + is_key_index + '\'' +
                ", sort=" + sort +
                ", type_id='" + type_id + '\'' +
                ", data_provider_id='" + data_provider_id + '\'' +
                ", show_sort=" + show_sort +
                ", index_weight=" + index_weight +
                ", show_type=" + show_type +
                ", zrld='" + zrld + '\'' +
                ", zrr='" + zrr + '\'' +
                ", unit='" + unit + '\'' +
                '}';
    }

    @GenericGenerator(name = "jpa-uuid", strategy = "uuid")
    @Id
    @GeneratedValue(generator = "jpa-uuid")
    @Column(name = "ID_", unique = true, nullable = false, precision = 10, scale = 0)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "CODE_",length = 50)
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Column(name = "NAME_", length = 500)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "PID_",length = 32)
    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    @Column(name = "DEP_", length = 32)
    public String getDep() {
        return dep;
    }

    public void setDep(String dep) {
        this.dep = dep;
    }

    @Column(name = "TYPE_", length = 50)
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Column(name = "ZB_CODE_", length = 100)
    public String getZb_code() {
        return zb_code;
    }

    public void setZb_code(String zb_code) {
        this.zb_code = zb_code;
    }

    @Column(name = "FUN_", length = 2000)
    public String getFun() {
        return fun;
    }

    public void setFun(String fun) {
        this.fun = fun;
    }

    @Column(name = "URL", length = 500)
    public String getUrl() {
        return url;
    }


    public void setUrl(String url) {
        this.url = url;
    }

    @Column(name = "INDEX_SYS_ID_", length = 32)
    public String getIndex_sys_id() {
        return index_sys_id;
    }

    public void setIndex_sys_id(String index_sys_id) {
        this.index_sys_id = index_sys_id;
    }

    @Column(name = "IS_HIDDEN_")
    public String getIs_hidden() {
        return is_hidden;
    }

    public void setIs_hidden(String is_hidden) {
        this.is_hidden = is_hidden;
    }

    @Column(name = "IS_KEY_INDEX_")
    public String getIs_key_index() {
        return is_key_index;
    }

    public void setIs_key_index(String is_key_index) {
        this.is_key_index = is_key_index;
    }

    @Column(name = "SORT_")
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Column(name = "TYPE_ID_", length = 50)
    public String getType_id() {
        return type_id;
    }

    public void setType_id(String type_id) {
        this.type_id = type_id;
    }

    @Column(name = "DATA_PROVIDER_ID_", length = 50)
    public String getData_provider_id() {
        return data_provider_id;
    }

    public void setData_provider_id(String data_provider_id) {
        this.data_provider_id = data_provider_id;
    }

    @Column(name = "SHOW_SORT_")
    public Integer getShow_sort() {
        return show_sort;
    }

    public void setShow_sort(Integer show_sort) {
        this.show_sort = show_sort;
    }

    @Column(name = "INDEX_WEIGHT_")
    public Integer getIndex_weight() {
        return index_weight;
    }

    public void setIndex_weight(Integer index_weight) {
        this.index_weight = index_weight;
    }

    @Column(name = "SHOW_TYPE_")
    public Integer getShow_type() {
        return show_type;
    }

    public void setShow_type(Integer show_type) {
        this.show_type = show_type;
    }

    @Column(name = "ZRLD", length = 10)
    public String getZrld() {
        return zrld;
    }

    public void setZrld(String zrld) {
        this.zrld = zrld;
    }

    @Column(name = "ZRR",length = 10)
    public String getZrr() {
        return zrr;
    }

    public void setZrr(String zrr) {
        this.zrr = zrr;
    }

    @Column(name = "UNIT_", length = 20)
    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }
}
